Optimal. Leaf size=48 \[ \frac{1}{35} \left (7 d x^5+5 e x^7\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{25} b d n x^5-\frac{1}{49} b e n x^7 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0431169, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {14, 2334} \[ \frac{1}{35} \left (7 d x^5+5 e x^7\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{25} b d n x^5-\frac{1}{49} b e n x^7 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2334
Rubi steps
\begin{align*} \int x^4 \left (d+e x^2\right ) \left (a+b \log \left (c x^n\right )\right ) \, dx &=\frac{1}{35} \left (7 d x^5+5 e x^7\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \left (\frac{d x^4}{5}+\frac{e x^6}{7}\right ) \, dx\\ &=-\frac{1}{25} b d n x^5-\frac{1}{49} b e n x^7+\frac{1}{35} \left (7 d x^5+5 e x^7\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end{align*}
Mathematica [A] time = 0.0022063, size = 69, normalized size = 1.44 \[ \frac{1}{5} a d x^5+\frac{1}{7} a e x^7+\frac{1}{5} b d x^5 \log \left (c x^n\right )+\frac{1}{7} b e x^7 \log \left (c x^n\right )-\frac{1}{25} b d n x^5-\frac{1}{49} b e n x^7 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.187, size = 266, normalized size = 5.5 \begin{align*}{\frac{b{x}^{5} \left ( 5\,e{x}^{2}+7\,d \right ) \ln \left ({x}^{n} \right ) }{35}}+{\frac{i}{14}}\pi \,be{x}^{7}{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-{\frac{i}{14}}\pi \,be{x}^{7}{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -{\frac{i}{14}}\pi \,be{x}^{7} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+{\frac{i}{14}}\pi \,be{x}^{7} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +{\frac{\ln \left ( c \right ) be{x}^{7}}{7}}-{\frac{ben{x}^{7}}{49}}+{\frac{ae{x}^{7}}{7}}+{\frac{i}{10}}\pi \,bd{x}^{5}{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-{\frac{i}{10}}\pi \,bd{x}^{5}{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -{\frac{i}{10}}\pi \,bd{x}^{5} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+{\frac{i}{10}}\pi \,bd{x}^{5} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +{\frac{\ln \left ( c \right ) bd{x}^{5}}{5}}-{\frac{bdn{x}^{5}}{25}}+{\frac{ad{x}^{5}}{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.08784, size = 77, normalized size = 1.6 \begin{align*} -\frac{1}{49} \, b e n x^{7} + \frac{1}{7} \, b e x^{7} \log \left (c x^{n}\right ) + \frac{1}{7} \, a e x^{7} - \frac{1}{25} \, b d n x^{5} + \frac{1}{5} \, b d x^{5} \log \left (c x^{n}\right ) + \frac{1}{5} \, a d x^{5} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.22252, size = 181, normalized size = 3.77 \begin{align*} -\frac{1}{49} \,{\left (b e n - 7 \, a e\right )} x^{7} - \frac{1}{25} \,{\left (b d n - 5 \, a d\right )} x^{5} + \frac{1}{35} \,{\left (5 \, b e x^{7} + 7 \, b d x^{5}\right )} \log \left (c\right ) + \frac{1}{35} \,{\left (5 \, b e n x^{7} + 7 \, b d n x^{5}\right )} \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 9.31182, size = 87, normalized size = 1.81 \begin{align*} \frac{a d x^{5}}{5} + \frac{a e x^{7}}{7} + \frac{b d n x^{5} \log{\left (x \right )}}{5} - \frac{b d n x^{5}}{25} + \frac{b d x^{5} \log{\left (c \right )}}{5} + \frac{b e n x^{7} \log{\left (x \right )}}{7} - \frac{b e n x^{7}}{49} + \frac{b e x^{7} \log{\left (c \right )}}{7} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28399, size = 99, normalized size = 2.06 \begin{align*} \frac{1}{7} \, b n x^{7} e \log \left (x\right ) - \frac{1}{49} \, b n x^{7} e + \frac{1}{7} \, b x^{7} e \log \left (c\right ) + \frac{1}{7} \, a x^{7} e + \frac{1}{5} \, b d n x^{5} \log \left (x\right ) - \frac{1}{25} \, b d n x^{5} + \frac{1}{5} \, b d x^{5} \log \left (c\right ) + \frac{1}{5} \, a d x^{5} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]